package com.mars.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

/**
 * 产品分类对象 sys_product_class
 *
 * @author mars
 * @date 2024-01-22
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "产品分类对象")
@Builder
@TableName("sys_product_class")
public class SysProductClass  extends BaseEntity{

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * class_name
     */
    @Excel(name = "class_name")
    @ApiModelProperty(value = "class_name")
    private String className;
    /**
     * parent_id
     */
    @Excel(name = "parent_id")
    @ApiModelProperty(value = "parent_id")
    private Long parentId;


}
